<template>
	<view class="content" >
		<view class="line-view"></view>
		<view class="logo-group-view">
			<image :src="baseImageUrl+'/login/logo.png'"></image>
		</view>
		<view @click="registerPolicyClick()" class="item-group-view" >
			<text class="item-left-txt">用户协议</text>
			<image class="arrow-image" src="../../static/mine/ic_arrow.png"></image>
		</view>
		<view class="line-view"></view>
		<view @click="privacyPolicyClick()" class="item-group-view" >
			<text class="item-left-txt">隐私政策</text>
			<image class="arrow-image" src="../../static/mine/ic_arrow.png"></image>
		</view>
		<view class="line-view"></view>
	</view>
</template>

<script>
	import configUrls from '@/common/config.js';
	export default {
		data() {
			return {
				baseImageUrl: configUrls.baseImageUrl
			}
		},
		methods: {
			registerPolicyClick() {
				uni.navigateTo({
					url: '/pages/index/h5Webview?titleStr=用户协议&url='+ encodeURIComponent(JSON.stringify(configUrls.registerPolicy))
				});
			},
			privacyPolicyClick() {
				uni.navigateTo({
					url: '/pages/index/h5Webview?titleStr=隐私政策&url='+ encodeURIComponent(JSON.stringify(configUrls.privacyPolicy))
				});
			}
		}
	}
</script>

<style>
	.content {
		background-color: #FFFFFF;
		width: 100vw;
		height: 100vh;
		display: flex;
		flex-direction: column;
	}
	.line-view {
		width: 100vw;
		height: 2rpx;
		background: rgba(0,0,0,0.06);
	}
	.logo-group-view {
		margin-top: 180rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 160rpx;
	}
	.logo-group-view image {
		width: 210rpx;
		height: 198rpx;
	}
	.item-group-view {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		height: 112rpx;
	}
	.item-left-txt {
		font-size: 28rpx;
		font-family: MiSans-Regular, MiSans;
		font-weight: 400;
		color: #333333;
		margin-left: 32rpx;
	}
	.arrow-image {
		width: 32rpx;
		height: 32rpx;
		margin-right: 32rpx;
	}
</style>
